﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ejercicio4
{
    class Program
    {
        static void Main(string[] args)
        {
            int num = 2, i, sumat, cont=0;
            bool per5 = false;
            while(per5==false)
            {
                sumat = 0;
                for(i=1;i<num;i++)
                {
                    if(num%i==0)
                    {
                        sumat = sumat + i;
                    }
                }
                if (num == sumat)
                {
                    Console.WriteLine("{0}", num);
                    cont++;
                }
                if (cont == 5)
                {
                    per5 = true;
                }
                num+=1;
            }
            Console.ReadKey();
        }
    }
}
